<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="col-lg-12 col-sm-12 col-xs-12">
    <div class="widget">
        <div class="modal-header">
            <button type="button" class="bootbox-close-button close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4 class="modal-title">${(editModel=='add')?string('新增过渡收费方案','修改过渡收费设置')}</h4>
        </div>
        <div class="modal-body padding-left-30">
            <div class="row">
                <form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form"
                      id="editForm_${serializeNum}"
                      data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
                      data-bv-message="This value is not valid"
                      data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
                      data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
                      data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
                    <input type="hidden" name="id" value="${editEntity.id}">



                    <#if (true && editModel=='add')||(true && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10 margin-top-20">
                            <div class="form-group">
                                <label for="name"
                                       class="col-sm-4 control-label no-padding-right">过渡收费方案名称：</label>
                                <div class="col-sm-6">
                                    <input  data-bv-message="The field is not valid" size="22"
                                           name="name" alt="收费名称"
                                           id="name" placeholder="收费名称" type="text"
                                           title="收费名称" class="form-control"
                                           value="${editEntity.name}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>

                    <#if (true && editModel=='add')||(true && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10 ">
                            <div class="form-group">
                                <label for="oneTimeItemsFeeHalfADay"
                                       class="col-sm-4 control-label no-padding-right">一次性物品费半日：</label>
                                <div class="col-sm-2">
                                    <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                           data-bv-numeric-message="The field is numeric" size="22"
                                           name="oneTimeItemsFeeHalfADay" alt="一次性物品费半日"
                                           id="oneTimeItemsFeeHalfADay" placeholder="" type="text"
                                           title="一次性物品费半日" class="form-control"
                                           value="${editEntity.oneTimeItemsFeeHalfADay}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>

                    <#if (true && editModel=='add')||(true && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="oneTimeItemsFeeFullDay" class="col-sm-4 control-label no-padding-right">一次性物品费全日：</label>
                                <div class="col-sm-2">
                                    <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                           data-bv-numeric-message="The field is numeric" size="22"
                                           name="oneTimeItemsFeeFullDay" alt="一次性物品费全日" id="oneTimeItemsFeeFullDay"
                                           placeholder="" type="text" title="一次性物品费全日" class="form-control"
                                           value="${editEntity.oneTimeItemsFeeFullDay}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>

                    <#if (true && editModel=='add')||(true && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="mealFeeStandardHalfDay" class="col-sm-4 control-label no-padding-right">月餐点费标准值半日：</label>
                                <div class="col-sm-2">
                                    <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                           data-bv-numeric-message="The field is numeric" size="22"
                                           name="mealFeeStandardHalfDay" alt="月餐点费标准值半日" id="mealFeeStandardHalfDay"
                                           placeholder="" type="text" title="月餐点费标准值半日"
                                           class="form-control" value="${editEntity.mealFeeStandardHalfDay}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>
                    <#if (true && editModel=='add')||(true && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label
                                       class="col-sm-4 control-label no-padding-right">月餐点费限制值起始半日：</label>
                                <div class="col-sm-6">
                                    <label class="col-sm-4 nopadding-left">
                                        <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                               data-bv-numeric-message="The field is numeric" size="22"
                                               name="mealFeeLimitStartHalfDay" alt="月餐点费限制值起始半日"
                                               id="mealFeeLimitStartHalfDay" placeholder="" type="text"
                                               title="月餐点费限制值起始半日" class="form-control"
                                               value="${editEntity.mealFeeLimitStartHalfDay}"/>
                                        <span class="text"></span>
                                    </label>
                                    <label class="col-sm-1 " style="padding-top: 8px;margin-right: 21px">
                                        至
                                    </label>
                                    <label class="col-sm-4 nopadding-left">
                                        <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                               data-bv-numeric-message="The field is numeric" size="22"
                                               name="mealFeeLimitEndHalfDay" alt="月餐点费限制值截止半日"
                                               id="mealFeeLimitEndHalfDay" placeholder="" type="text"
                                               title="月餐点费限制值截止半日" class="form-control"
                                               value="${editEntity.mealFeeLimitEndHalfDay}"/>
                                        <span class="text"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </#if>

                    <#if (true && editModel=='add')||(true && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="mealFeeStandardFullDay" class="col-sm-4 control-label no-padding-right">月餐点费标准值全日：</label>
                                <div class="col-sm-2">
                                    <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                           data-bv-numeric-message="The field is numeric" size="22"
                                           name="mealFeeStandardFullDay" alt="月餐点费限制值起始全日"
                                           id="mealFeeStandardFullDay" placeholder="" type="text"
                                           title="月餐点费限制值起始全日" class="form-control"
                                           value="${editEntity.mealFeeStandardFullDay}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>

                    <#if (true && editModel=='add')||(true && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="mealFeeLimitStartFullDay"
                                       class="col-sm-4 control-label no-padding-right">月餐点费限制值起始全日：</label>
                                <div class="col-sm-6">
                                    <label class="col-sm-4 nopadding-left">
                                        <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                               data-bv-numeric-message="The field is numeric" size="22"
                                               name="mealFeeLimitStartFullDay" alt="月餐点费限制值起始全日"
                                               id="mealFeeLimitStartFullDay" placeholder="" type="text"
                                               title="月餐点费限制值起始全日" class="form-control"
                                               value="${editEntity.mealFeeLimitStartFullDay}"/>
                                        <span class="text"></span>
                                    </label>
                                    <label class="col-sm-1 " style="padding-top: 8px;margin-right: 21px">
                                        至
                                    </label>
                                    <label class="col-sm-4 nopadding-left">
                                        <input data-bv-numeric="true" data-bv-message="The field is not valid"
                                               data-bv-numeric-message="The field is numeric" size="22"
                                               name="mealFeeLimitEndFullDay" alt="月餐点费限制值截止全日"
                                               id="mealFeeLimitEndFullDay" placeholder="" type="text"
                                               title="月餐点费限制值截止全日" class="form-control"
                                               value="${editEntity.mealFeeLimitEndFullDay}"/>
                                        <span class="text"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </#if>

                    <#if (false && editModel=='add')||(false && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="empId" class="col-sm-4  control-label no-padding-right">创建人</label>
                                <div class="col-sm-6">
                                    <input data-bv-message="The field is not valid" size="32" name="empId" alt="创建人"
                                           id="empId" placeholder="创建人" type="text" title="创建人" class="form-control"
                                           value="${editEntity.empId}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>
                    <#if (false && editModel=='add')||(false && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="status" class="col-sm-4 control-label no-padding-right">当前状态(数据字典:preparatoryFeeSet)</label>
                                <div class="col-sm-6">
                                    <input data-bv-integer-message="The field is number"
                                           data-bv-message="The field is not valid" data-bv-integer="true" size="11"
                                           name="status" alt="当前状态(数据字典:preparatoryFeeSet)" id="status"
                                           placeholder="当前状态(数据字典:preparatoryFeeSet)" type="text"
                                           title="当前状态(数据字典:preparatoryFeeSet)" class="form-control"
                                           value="${editEntity.status}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>
                    <#if (false && editModel=='add')||(false && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="tfsCreateTime"
                                       class="col-sm-4 control-label no-padding-right">最后修改人</label>
                                <div class="col-sm-6">
										<span class="input-icon icon-left">
											<input data-bv-date-format="YYYY-MM-DD hh:mm:ss"
                                                   data-bv-message="The field is not valid"
                                                   data-bv-date-message="请正确输入一个时间" data-bv-date="true" size="19"
                                                   name="tfsCreateTime" alt="最后修改人" id="tfsCreateTime"
                                                   placeholder="最后修改人" type="text" title="最后修改人"
                                                   class="form-control form-control date-picker"
                                                   onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                                   value="${editEntity.tfsCreateTime}"/>
											<i class="fa fa-calendar"></i>
										</span>
                                </div>
                            </div>
                        </div>
                    </#if>
                    <#if (false && editModel=='add')||(false && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="tfsUpdateTime"
                                       class="col-sm-4 control-label no-padding-right">最后修改时间</label>
                                <div class="col-sm-6">
										<span class="input-icon icon-left">
											<input data-bv-date-format="YYYY-MM-DD hh:mm:ss"
                                                   data-bv-message="The field is not valid"
                                                   data-bv-date-message="请正确输入一个时间" data-bv-date="true" size="19"
                                                   name="tfsUpdateTime" alt="最后修改时间" id="tfsUpdateTime"
                                                   placeholder="最后修改时间" type="text" title="最后修改时间"
                                                   class="form-control form-control date-picker"
                                                   onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                                   value="${editEntity.tfsUpdateTime}"/>
											<i class="fa fa-calendar"></i>
										</span>
                                </div>
                            </div>
                        </div>
                    </#if>
                    <#if (false && editModel=='add')||(false && editModel=='edit')>
                        <div class="col-xm-12 col-sm-12 col-lg-12 margin-bottom-10">
                            <div class="form-group">
                                <label for="version" class="col-sm-4 control-label no-padding-right">版本</label>
                                <div class="col-sm-6">
                                    <input data-bv-integer-message="The field is number"
                                           data-bv-message="The field is not valid" data-bv-integer="true" size="11"
                                           name="version" alt="版本" id="version" placeholder="版本" type="text"
                                           title="版本" class="form-control" value="${editEntity.version}"/>
                                    <span class="text"></span>
                                </div>
                            </div>
                        </div>
                    </#if>
                    <div class="col-sm-12">
                        <div class="text-align-center ">
                            <button style="min-width: 80px;margin-right:20px" type="submit" class="btn btn-blue" >确定
                            </button>
                            <input style="width: 80px" type="button" class="btn btn-blue" data-dismiss="modal" value="取消"
                                   />

                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
    $(".selectpicker_${serializeNum}").select2();
</script>